package org.budo.cmbc.direct.sdk.entity.ryb;

import org.budo.cmbc.direct.sdk.entity.AbstractCmbcDirectResponse;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 个人信息补充结果查询
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
public class MEQryCustRiskPerInfoResponse extends AbstractCmbcDirectResponse {
    private static final long serialVersionUID = 6114298231134238091L;

    /**
     * 客户信息是否已补充: 00-未补充, 01-已完善, 02-已过期 （暂时有效期都是永久有效，仅作为保留项）
     */
    private String grade;

    public MEQryCustRiskPerInfoResponse(String channelJnlNo, String responseJson) {
        super(channelJnlNo, responseJson);

        JSONObject jsonObj = JSON.parseObject(responseJson);

        this.grade = jsonObj.getString("Grade");
    }
}
